<?php $this->widget('application.components.imageupload.UploadForm'); ?>



<? 
//    $ourscript = '$("#photoimg").live("change", function(){$("#preview").html("");$("#preview").html("wating..."); $("#imageform").ajaxForm({target: "#preview"}).submit();});';
//    Yii::app()->clientScript->registerScript('ImgUpload',$ourscript,CClientScript::POS_READY);
//    Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl."/js/jqueryform.js", CClientScript::POS_HEAD);

    ?>
<!--<form id="imageform" method="post" enctype="multipart/form-data" action='/help/upload'>
Upload image <input type="file" name="photoimg" id="photoimg" />
</form>

<div id='preview'>
</div>-->